﻿#ifndef WIDGETQRCODE_H
#define WIDGETQRCODE_H

#include <QWidget>
#include <QLabel>
#include <QPainter>
#include <QDebug>
#include <QImage>
#include "Global.h"
extern "C"
{
    #include "bitstream.h"
    #include "config.h"
    #include "mask.h"
    #include "mmask.h"
    #include "mqrspec.h"
    #include "qrencode.h"
    #include "qrinput.h"
    #include "qrspec.h"
    #include "rscode.h"
    #include "split.h"
}

class WidgetQrCode : public QWidget
{
    Q_OBJECT
    QRcode* qrcode;
    QLabel* labelQrCode;
    QString m_QrCodeNum;
protected:
    void paintEvent(QPaintEvent *);
public slots:
    void onHandleQrCodeValue(QString value);
public:
    explicit WidgetQrCode(QWidget *parent = 0);
    ~WidgetQrCode();
};

#endif // WIDGETQRCODE_H
